package Casting2;

public class TestAnimal {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Cat cat = new Cat();
		cat.showAnimal();
		cat.showCat();

		Animal animal = new Animal();
		animal.showAnimal();

		Animal animal1 = new Cat();
		Cat cat1 = (Cat) new Animal();
		cat1.showAnimal();
		cat1.showCat();

	}
}
